#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QLayout* pLayout = new QBoxLayout(QBoxLayout::TopToBottom, ui->groupBox);
    ui->groupBox->setLayout(pLayout);
    MyCanvasJulia* pCanvasJulia = new MyCanvasJulia(ui->groupBox);
    pLayout->addWidget(pCanvasJulia);

    QLayout* pLayout2 = new QBoxLayout(QBoxLayout::TopToBottom, ui->groupBox_2);
    ui->groupBox_2->setLayout(pLayout2);
    MyCanvasMandelBrot* pCanvasMandelbrot = new MyCanvasMandelBrot(ui->groupBox_2);
    pLayout2->addWidget(pCanvasMandelbrot);
    pCanvasMandelbrot->julia=pCanvasJulia;
}


MainWindow::~MainWindow()
{
    delete ui;
}
